<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:f="http://java.sun.com/jsf/core"  
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <h:head>
        <title>SYSTEMCAR</title>
    </h:head>
    <h:body onload="#{loginCtrl.verificaLogin()}">
       
             
        <p:layout fullPage="true" >
             
            <p:layoutUnit position="north" size="120"  >
                
               
                <h:form >
                    
                    <p:dock position="top" >
                         
                        <p:menuitem value="Home" style="font-size: 10px" icon="/img/home.png" url="/faces/Admin/index.xhtml"/>
                    <p:menuitem value="Cadastro de Postos" style="font-size: 10px"  icon="/img/posto.png" url="/faces/Admin/cadposto.xhtml"/>
                    <p:menuitem value="Lista de Postos" style="font-size: 10px" icon="/img/listposto.png" url="/faces/Admin/listapostos.xhtml"/>
                </p:dock> 
                     <p:spacer width="0" height="8"/>
                     <p:panel  style="border: none; background-color: #b5c6d0" >
                    <p:spacer width="85%" height="0"/>
                    <h:outputText value="#{loginCtrl.msUsuario()}   "/>
                    <p:commandLink value="Logout" action="#{loginCtrl.logOut()}" style="font-size: 12px;color: red"/>
                    </p:panel>
                </h:form>
               
            </p:layoutUnit>
            <p:layoutUnit position="center">
                <ui:insert name="conteudo">
                    
                </ui:insert>
            </p:layoutUnit>
       
        
       
         </p:layout>
    </h:body>
</html>

